package com.ruoyi.liangshi.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 菜品类型信息对象 gd_arch_item_class
 * 
 * @author ruoyi
 * @date 2023-11-18
 */
@Data
public class GdArchItemClass extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 菜品类型Id */
    private Long id;

    /** 菜品编码 */
    @Excel(name = "菜品编码")
    private String code;

    /** 菜品名称 */
    @Excel(name = "菜品名称")
    private String name;

    /** 菜品单位Id */
    @Excel(name = "菜品单位Id")
    private Long pid;

    /** 类型级别 0 一级 1：二级  */
    @Excel(name = "类型级别 0 一级 1：二级 ")
    private Integer level;

    /** 是否启用，t是 f 否  */
    @Excel(name = "是否启用，t是 f 否 ")
    private String leaf;

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("code", getCode())
            .append("name", getName())
            .append("pid", getPid())
            .append("level", getLevel())
            .append("leaf", getLeaf())
            .toString();
    }
}
